﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Billing
{
    [AttributeUsage(AttributeTargets.Property)]
    public class RightAttribute : Attribute
    {
        public RightAttribute()
        {

        }
        public RightAttribute(string name)
        {
            mName = name;
        }
        public RightAttribute(bool isStBProperty)
        {
            mStBProperty = isStBProperty;
        }
        public RightAttribute(string name, bool isStBProperty)
        {
            mName = name;
            mStBProperty = isStBProperty;
        }

        private bool mStBProperty = true;
        private string mName = String.Empty;

        public bool StBProperty
        {
            get { return mStBProperty; }
            set { mStBProperty = value; }
        }
        public string Name
        {
            get { return mName; }
            set { mName = value; }
        }
    }
    [AttributeUsage(AttributeTargets.Property)]
    public class RightAttributeExistence : Attribute
    {
        public RightAttributeExistence()
        {

        }
        public RightAttributeExistence(string name)
        {
            mName = name;
        }

        private string mName = String.Empty;
        public string Name
        {
            get { return mName; }
            set { mName = value; }
        }
    }
}
